600 |
How can include the values in the inner cells in the drop down filter window
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exRowLines; Gantt1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Gantt1->Description[Exganttlib_tlb::DescriptionTypeEnum::exFilterBarBlanks] = L""; Gantt1->Description[Exganttlib_tlb::DescriptionTypeEnum::exFilterBarNonBlanks] = L""; Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Single Column"); var_Column->HTMLCaption = L"Single column with <b>inner cells</b>"; var_Column->ToolTip = L"Click the drop down filter button, and the filter list includes the inner cells values too."; var_Column->DisplayFilterButton = true; var_Column->DisplayFilterPattern = false; var_Column->FilterList = Exganttlib_tlb::FilterListEnum::exIncludeInnerCells; Gantt1->ShowFocusRect = false; Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; TVariant s = TVariant(var_Items->get_SplitCell(TVariant(var_Items->AddItem(TVariant("S 1.1"))),TVariant(0))); var_Items->set_CellCaption(TNoParam(),TVariant(s),TVariant("S 1.2")); var_Items->set_CellHAlignment(TNoParam(),TVariant(s),Exganttlib_tlb::AlignmentEnum::CenterAlignment); var_Items->set_CellBackColor(TNoParam(),TVariant(s),0x1000000); var_Items->set_CellWidth(TNoParam(),TVariant(s),84); s = TVariant(var_Items->get_SplitCell(TVariant(var_Items->AddItem(TVariant("S 2.1"))),TVariant(0))); var_Items->set_CellCaption(TNoParam(),TVariant(s),TVariant("S 2.2")); var_Items->set_CellHAlignment(TNoParam(),TVariant(s),Exganttlib_tlb::AlignmentEnum::CenterAlignment); var_Items->set_CellWidth(TNoParam(),TVariant(s),84); s = TVariant(var_Items->get_SplitCell(TVariant(var_Items->AddItem(TVariant("S 3.1"))),TVariant(0))); var_Items->set_CellCaption(TNoParam(),TVariant(s),TVariant("S 3.2")); var_Items->set_CellHAlignment(TNoParam(),TVariant(s),Exganttlib_tlb::AlignmentEnum::CenterAlignment); var_Items->set_CellBackColor(TNoParam(),TVariant(s),0x1000000); var_Items->set_CellWidth(TNoParam(),TVariant(s),84); |
599 |
How can I sort the value gets listed in the drop down filter window
Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot; Gantt1->MarkSearchColumn = false; Gantt1->Description[Exganttlib_tlb::DescriptionTypeEnum::exFilterBarAll] = L""; Gantt1->Description[Exganttlib_tlb::DescriptionTypeEnum::exFilterBarBlanks] = L""; Gantt1->Description[Exganttlib_tlb::DescriptionTypeEnum::exFilterBarNonBlanks] = L""; Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"P1"); var_Column->DisplayFilterButton = true; var_Column->DisplayFilterPattern = false; var_Column->FilterList = Exganttlib_tlb::FilterListEnum::exSortItemsDesc; Exganttlib_tlb::IColumnPtr var_Column1 = Gantt1->Columns->Add(L"P2"); var_Column1->DisplayFilterButton = true; var_Column1->DisplayFilterPattern = false; var_Column1->FilterList = Exganttlib_tlb::FilterListEnum::exSortItemsAsc; Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Z3")); var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("C")); var_Items->set_CellCaption(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Z1"))),TVariant(1),TVariant("B")); var_Items->set_CellCaption(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Z2"))),TVariant(1),TVariant("A")); var_Items->set_ExpandItem(h,true); |
598 |
Is there a way to break the hours into 15 minute increments just showing lines instead of the minute numbers
Gantt1->BeginUpdate(); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2008,2,5).operator double())); Gantt1->Chart->LevelCount = 3; Gantt1->Chart->get_Level(0)->set_Label(TVariant("<b><%mmm%> <%dd%></b> <%yyyy%> ")); Exganttlib_tlb::ILevelPtr var_Level = Gantt1->Chart->get_Level(1); var_Level->set_Label(TVariant("<%hh%>")); var_Level->Alignment = Exganttlib_tlb::AlignmentEnum::CenterAlignment; Exganttlib_tlb::ILevelPtr var_Level1 = Gantt1->Chart->get_Level(2); var_Level1->set_Label(TVariant("")); var_Level1->Unit = Exganttlib_tlb::UnitEnum::exMinute; var_Level1->Count = 15; Gantt1->Chart->UnitWidth = 6; Gantt1->EndUpdate(); |
597 |
How can I change the visual appearance of the milestone bar using EBN
Exganttlib_tlb::IAppearancePtr var_Appearance = Gantt1->VisualAppearance; var_Appearance->Add(1,TVariant(String("gBFLBCJwBAEHhEJAEGg4BKMMQAAYAQGKIYBkAKBQAGaAoDDMMILQiMQwjRBMKgBBCLIxiGK4DhiF4aRTHUKAAKQahLEaSZLhEZRQiqA4sS5FQBSBDQFwSByEY6mSaYJ") + "AWK4tCyNM7SfQAbxnAgYaLAAYRUjuHZOTZAc4UfAdFL/K4AKrfeZIeAiCRQGiYZyHKaRShjDwXKLIIjbJhkNoJChCNQgBScPgxCx8JypaCaar2fjQM6zWAMdb2Cz7PjD" + "H7wPA1WYJRaDYjhcB4LheAqGXBWUYLYb8XS3EKJYhiWA4HjqFjGJpcEzPbRiNx3H6SABlLLaLo7JpGO52FrTHZjXyzLqBVpoOyEbrmcozYzjN41RpWETfQYDcwteqcLp" + "rhGVZrm6dp8j4bAnDQP5Uh+OpcH6R4Lg2YJvEIeg6kWEoJB2ZZyG6GoLCSXxtG+IZ1GmfhJjcawNFWfB/h+V5pnUc5VhWeZ4BMX4jlySwtiAJodlEYRaBYFgHHgIA2gG" + "ExkFUdxFl6A5hgUbgXgcVRzFiXA3CICARAEgI")); var_Appearance->Add(2,TVariant("CP:1 -6 0 5 0")); Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart; var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IBarPtr var_Bar = var_Chart->Bars->Add(L"MilestoneEBN"); var_Bar->Color = 0x2000000; var_Bar->Height = 14; Gantt1->Columns->Add(L"Tasks"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Milestone")),TVariant("Milestone"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,2,0,00,01,0).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Milestone EBN ")),TVariant("MilestoneEBN"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,2,0,00,01,0).operator double()),TNoParam(),TNoParam()); |
596 |
How can I change the visual appearance of the summary bar using EBN
Gantt1->VisualAppearance->Add(1,TVariant(String("gBFLBCJwBAEHhEJAEGg4BGICg6AADACAxRDAMgBQKAAzQFAYZhhBaERiGEaIJhUAIIRZGMQxXAcMQvDSKQJhGDAADEMgyAJCIxjPIgZBoGqPBpASQJUhkMocR7HMygB") + "IkSRNA8kMwxdQEaw9ECRIDpGaYWTFDhsABTVQRLL0Tw9ISERqoSSaGgkCYaA7CNJ0PBNJSjJ6LJZGURbKqyCQ1DBbUB3BaUaQ9JaKa7pKa7cpWKIqSxEMrxcLFcT5DSb" + "YDxGjLEhmPZBVZQNBxtJbFQHWJCNgzVAdOAAfzQM70GpMQoWJYeVpEObSBD1dABTCBczADYoex7ID+aJuGiYVZdWxJOjfbhkTTIJAaCawABrWxR8iHN5paTnUpzDjwbg" + "0kqRRyr+XwjA8Go/HSBp6g6KJTFcGpWmYdg8H6dJTH0EZelueBfBuLwyBMd50nIfR+kmXB4BECQUAaEYMHQHRHCGFRYI2ZAwEIExghQZA2EIQoGGoEhOgGBBYlAeYYHM" + "WJcDcGx4HYHoHmICIFjeBohkaDAAC2DAjBYJIIiKSI2CSC5hjQJBsCOCwYiIKoGmKWJkn6DANkiWgzCwYwolAcQkksWJaCuDohlicg2hDQR+EELBInKcJohMJBomILoG" + "mISQuESFBOgkOQDg+SoTEyfoXCUSImDyGZhjkaI1hcJgTnoXgACYCYKG2GQkEkVJchKIoZDIbIciYKY+HEP4mlmThSg+aBIlKBYUCUKgGHyG4jEkPoKiAKI6D6EokGkS" + "gyECF5jEKVJZD+aYqHKG4nGoCh+iKJ4qEqBokh+KYag6JoqmqKo2iWJpqgKRJHDiT5qk6NYtCsapmjiLprHqdo6i8awan6QovCwOp6kSLQsBsHpGjKbBbBaMYhm0Cgal" + "ILBtBsUpTiGUIUAQgIA==")); Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart; var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IBarPtr var_Bar = var_Chart->Bars->Copy(L"Task",L"Summary"); var_Bar->Color = 0x1000000; var_Bar->Height = 16; Gantt1->Columns->Add(L"Tasks"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Task 2")),TVariant("Summary"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TNoParam(),TNoParam()); |
595 |
How can I change the visual appearance of the task bar using EBN
Gantt1->VisualAppearance->Add(1,TVariant(String("gBFLBCJwBAEHhEJAEGg4BGoCg6AADACAxRDAMgBQKAAzQFAYZhhBaERiGEaIJhUAIIRZGMQxXAcMQvDSKQJhGLhQiSJoJDSBEgSXDIZQ5D6OZYACDJQACJYJTbAYzyP") + "JkPRAA6EZCmGAwCglf5HABRb7xNLkbQ8GySKJnWCQJhoD5BSLCNRUTRFFQtGgZBpEWwLCjQNQwWLKFoTJIEPSBDKqYDoKYqTgOOZOThHQz3HakQRdAa/ZpnaKpUo2d47" + "XjMWBwGA0EzeAAGaxoShqdoiFaGU7UOJVJBOGwHK6BchoMAKbp6XoVWRaOAWLZWVABM7XLZxbLccyGfZ1XhdV5UbqUMznR7PNrjLKIJpCOJbbyAFwgBaeQABYLhK7iHR" + "mi8XYwjMWpjFWOx1GIB5LmgdB4HCEBECSIBpDGHQOicIwokYPImikEIJj6eJIloEgogSc40FGcJEFiYZIG2VIoAURw1g2QxyAQNwNAMPJOgIYI4CoDIBmAeAKBIUpQDU" + "KJYDoTpIB4vxgmgdgNgeYZDDoFw7CEJhQn+BohmKfImCWSZRlgYwikYMQ0gwF4DniTA/gwBJYjQYwsgoIg6AyCRQDiIJODAZBImoOguAmMZ4lQLIJjOMI3CYZJpEIT4K" + "iKSI6DqD5ZGAAgHC2DAjBYR4SGUGYGE+GIlCmFhRhIB5iFAbwWsiJgMhoCoxngV4ZCcSYOHaGYnHmIg8COJpoCoOISmSWZeHWHgoEkRoAg4EIYB4NogmiSgKg6GRjGoJ" + "gFh+ZJKDaBYjmgaQygiBRUHmbhoDsTAyiqIIoioGoOw8aoKhKKoemeOIaAeF5HmqHoqiyKxKgYaN/locgBiuZRojoVIok8cwsjaMBLGqDoAhGIpoEYWYEmAIxUkQLZmg" + "iYg2g2I4JiCQwuAqWIOIkEAQICA==")); Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart; var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IBarPtr var_Bar = var_Chart->Bars->get_Item(TVariant("Task")); var_Bar->Color = 0x1000000; var_Bar->Height = 16; Gantt1->Columns->Add(L"Tasks"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Task 2")),TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TNoParam(),TNoParam()); |
594 |
How can I change the visual appearance of the task bar using EBN
Gantt1->VisualAppearance->Add(1,TVariant(String("gBFLBCJwBAEHhEJAEGg4BZsIQAAYAQGKIYBkAKBQAGaAoDDMMILQiMQwjRBMKgBBCLIxiGK4DhiGoZATCMbDBIcSwSGgCJCjeS4ZDKHIXSxFUKTBAcSQTGyBRokaYZR") + "i6A4+TRPETTWAEcABHSbQCoKTKAoCHpLQLMYxDKItJSpGYaRgqWCaZpuUIaUzKVbxbK9CSMGiQbIsOJrBqqQozWZHVITLR9VgBNqga7uGR5DoqdovU5dVTVda9Ly5LSs" + "MQvfALCqOe45URdNp3RiVBYfI6+cZvfJLWh4NqeAbCMC1UJoYhlUKCBg0TRoVo9AIDX5QWaYXC0AkBA==")); Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart; var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IBarPtr var_Bar = var_Chart->Bars->get_Item(TVariant("Task")); var_Bar->Color = 0x1000000; var_Bar->Height = 16; Gantt1->Columns->Add(L"Tasks"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Task 2")),TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TNoParam(),TNoParam()); |
593 |
How can I clip the HTML text or caption inside the bar
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IBarPtr var_Bar = Gantt1->Chart->Bars->get_Item(TVariant("Task")); var_Bar->Pattern = Exganttlib_tlb::PatternEnum::exPatternBox; var_Bar->Height = 13; Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TVariant("This is a bit of text that get's clipped")); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarHAlignCaption,TVariant(3)); |
592 |
How can I align the text/caption on the scroll bar
Gantt1->ScrollPartCaption[Exganttlib_tlb::ScrollBarEnum::exHScroll,Exganttlib_tlb::ScrollPartEnum::exLowerBackPart] = L"left"; Gantt1->ScrollPartCaptionAlignment[Exganttlib_tlb::ScrollBarEnum::exHScroll,Exganttlib_tlb::ScrollPartEnum::exLowerBackPart] = Exganttlib_tlb::AlignmentEnum::LeftAlignment; Gantt1->ScrollPartCaption[Exganttlib_tlb::ScrollBarEnum::exHScroll,Exganttlib_tlb::ScrollPartEnum::exUpperBackPart] = L"right"; Gantt1->ScrollPartCaptionAlignment[Exganttlib_tlb::ScrollBarEnum::exHScroll,Exganttlib_tlb::ScrollPartEnum::exUpperBackPart] = Exganttlib_tlb::AlignmentEnum::RightAlignment; Gantt1->ColumnAutoResize = false; Gantt1->Columns->Add(L"1"); Gantt1->Columns->Add(L"2"); Gantt1->Columns->Add(L"3"); Gantt1->Columns->Add(L"4"); |
591 |
How do I programmatically control the position of the horizontal scroll bar in the chart area, so I can specify a range of dates to scorll within
Gantt1->BeginUpdate(); Gantt1->Columns->Add(L"Task"); Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart; var_Chart->LevelCount = 2; var_Chart->set_PaneWidth(false,56); var_Chart->set_ScrollRange(Exganttlib_tlb::ScrollRangeEnum::exStartDate,TVariant(TDateTime(2001,1,1).operator double())); var_Chart->set_ScrollRange(Exganttlib_tlb::ScrollRangeEnum::exEndDate,TVariant(TDateTime(2001,1,31).operator double())); var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,12).operator double())); Gantt1->ScrollPartCaption[Exganttlib_tlb::ScrollBarEnum::exHChartScroll,Exganttlib_tlb::ScrollPartEnum::exLowerBackPart] = PChar(Gantt1->Chart->get_ScrollRange(Exganttlib_tlb::ScrollRangeEnum::exStartDate)); Gantt1->ScrollPartCaptionAlignment[Exganttlib_tlb::ScrollBarEnum::exHChartScroll,Exganttlib_tlb::ScrollPartEnum::exLowerBackPart] = Exganttlib_tlb::AlignmentEnum::LeftAlignment; Gantt1->ScrollPartCaption[Exganttlib_tlb::ScrollBarEnum::exHChartScroll,Exganttlib_tlb::ScrollPartEnum::exUpperBackPart] = PChar(Gantt1->Chart->get_ScrollRange(Exganttlib_tlb::ScrollRangeEnum::exEndDate)); Gantt1->ScrollPartCaptionAlignment[Exganttlib_tlb::ScrollBarEnum::exHChartScroll,Exganttlib_tlb::ScrollPartEnum::exUpperBackPart] = Exganttlib_tlb::AlignmentEnum::RightAlignment; Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,15).operator double()),TVariant(TDateTime(2001,1,18).operator double()),TVariant("K1"),TNoParam()); h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,11).operator double()),TVariant("K1"),TNoParam()); Gantt1->EndUpdate(); |
590 |
How can I programmatically control the position of the "splitter" between the item list on the left side and the gantt chart on the right
|
589 |
How can I add a milestone bar and some text in the chart area
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Milestone"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,2).operator double()),TNoParam(),TVariant("<a1>text</a> outside")); var_Items->set_ItemBar(h,TNoParam(),Exganttlib_tlb::ItemBarPropertyEnum::exBarHAlignCaption,TVariant(18)); |
588 |
How can I display or align the bar's caption or text outside of the bar
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->DefaultItemHeight = 32; Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,3).operator double()),TVariant(TDateTime(2001,1,5).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant("<b>to do</b>")); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarHAlignCaption,TVariant(18)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarVAlignCaption,TVariant(16)); |
587 |
How can I display or align the bar's caption or text outside of the bar
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,4).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant("to do")); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarHAlignCaption,TVariant(16)); |
586 |
How can I display or align the bar's caption or text outside of the bar
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant("to do ")); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarHAlignCaption,TVariant(18)); |
585 |
Is there any option to count the non-working days
Gantt1->BeginUpdate(); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2002,1,1).operator double())); Gantt1->Columns->Add(L"Task"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2002,1,2).operator double()),TVariant(TDateTime(2002,1,4).operator double()),TVariant("A"),TNoParam()); TVariant var_ItemBar = TVariant(var_Items->get_ItemBar(h,TVariant("A"),Exganttlib_tlb::ItemBarPropertyEnum::exBarNonWorkingCount)); Gantt1->EndUpdate(); |
584 |
Is there any option to count or to specify the working days
Gantt1->BeginUpdate(); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2002,1,1).operator double())); Gantt1->Columns->Add(L"Task"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2002,1,2).operator double()),TVariant(TDateTime(2002,1,4).operator double()),TVariant("A"),TNoParam()); TVariant var_ItemBar = TVariant(var_Items->get_ItemBar(h,TVariant("A"),Exganttlib_tlb::ItemBarPropertyEnum::exBarWorkingCount)); Gantt1->EndUpdate(); |
583 |
How do I select the next row/item
Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddItem(TVariant("Item 1")); var_Items->AddItem(TVariant("Item 2")); var_Items->AddItem(TVariant("Item 3")); var_Items->set_SelectItem(var_Items->get_NextVisibleItem(var_Items->FocusItem),true); |
582 |
How do I define the visual appearance of the bar by using your EBN/skin files
Gantt1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Gantt1->Chart->Bars->Copy(L"Task",L"EBN")->Color = 0x1000000; Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("EBN"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Item 2")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
581 |
Is it possible to have an "empty box" pattern for the bars
Gantt1->Chart->Bars->Copy(L"Task",L"Box")->Pattern = Exganttlib_tlb::PatternEnum::exPatternBox; Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Box"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
580 |
How do I enable resizing ( changing the height ) the items at runtime
Gantt1->ItemsAllowSizing = Exganttlib_tlb::ItemsAllowSizingEnum::exResizeItem; Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exHLines; Gantt1->ScrollBySingleLine = true; Gantt1->Columns->Add(L"Column"); Gantt1->Items->AddItem(TVariant("Item 1")); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->set_ItemHeight(var_Items->AddItem(TVariant("Item 2")),48); Gantt1->Items->AddItem(TVariant("Item 3")); |
579 |
How do I enable resizing all the items at runtime
Gantt1->ItemsAllowSizing = Exganttlib_tlb::ItemsAllowSizingEnum::exResizeAllItems; Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exHLines; Gantt1->Columns->Add(L"Column"); Gantt1->Items->AddItem(TVariant("Item 1")); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->set_ItemHeight(var_Items->AddItem(TVariant("Item 2")),48); Gantt1->Items->AddItem(TVariant("Item 3")); |
578 |
I'm trying to use the percentage display in my gantt's bars. Unfortunately, I don't see any percentage on the gantt chart
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IBarPtr var_Bar = Gantt1->Chart->Bars->Copy(L"Task",L"BarName"); var_Bar->Color = RGB(255,0,0); var_Bar->Pattern = Exganttlib_tlb::PatternEnum::exPatternBDiagonal; Gantt1->Chart->Bars->Add(L"BarName%Progress")->Shortcut = L"Percent"; Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.4)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); |
577 |
How I can show Months in Time Unit panel into Roman numerals
Gantt1->Chart->LevelCount = 2; Gantt1->Chart->get_Level(0)->set_Label(TVariant(0)); Exganttlib_tlb::ILevelPtr var_Level = Gantt1->Chart->get_Level(1); var_Level->set_Label(TVariant("<%mr%>")); var_Level->Unit = Exganttlib_tlb::UnitEnum::exMonth; |
576 |
Can I show a bar with a different vertical position
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Opaque")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); h = var_Items->AddItem(TVariant("Transparent and Opaque")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarOffset,TVariant("-3")); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarTransparent,TVariant(80)); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,3).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); |
575 |
How can I show transparent and opaque bars in the same chart
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Opaque")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); h = var_Items->AddItem(TVariant("Transparent and Opaque")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarOffset,TVariant("-3")); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarTransparent,TVariant(80)); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,3).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); |
574 |
How can I draw bars using transparent colors
Gantt1->Chart->ShowTransparentBars = 60; Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Chart->Bars->Copy(L"Task",L"TaskR")->Color = RGB(255,0,0); Gantt1->Chart->set_PaneWidth(false,48); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Item 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,5).operator double()),TVariant("A"),TNoParam()); var_Items->AddBar(h,TVariant("TaskR"),TVariant(TDateTime(2001,1,4).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("B"),TNoParam()); |
573 |
Can I change the Task bar so it display a Progress or a Percent bar, but it is splitted when the task intersect a non working area
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart; var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); var_Chart->Bars->Add(L"Task%Progress:Split")->Shortcut = L"Task"; Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Item 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,16).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.15)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); |
572 |
Can I change the Task bar so it display a Progress or a Percent bar
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart; var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); var_Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Task"; Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Item 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,5).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.15)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); |
571 |
How can I remove the filter
|
570 |
I use the ShowEmptyBars property, but I display seconds from 15 to 15, and the bars are not shown correctly. What can I do
Gantt1->BeginUpdate(); Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart; var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2002,1,1).operator double())); var_Chart->LevelCount = 2; var_Chart->get_Level(0)->set_Label(TVariant(1048576)); Exganttlib_tlb::ILevelPtr var_Level = var_Chart->get_Level(1); var_Level->set_Label(TVariant("<%ss%>")); var_Level->Count = 15; var_Chart->ShowEmptyBars = 15; var_Chart->ShowEmptyBarsUnit = Exganttlib_tlb::UnitEnum::exSecond; var_Chart->set_PaneWidth(false,48); Gantt1->Columns->Add(L"Task"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2002,1,1,0,00,15,0).operator double()),TVariant(TDateTime(2002,1,1,0,00,15,0).operator double()),TVariant("A"),TNoParam()); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2002,1,1,0,01,15,0).operator double()),TVariant(TDateTime(2002,1,1,0,01,30,0).operator double()),TVariant("B"),TNoParam()); var_Items->AddLink(TVariant("AB"),h,TVariant("A"),h,TVariant("B")); Gantt1->EndUpdate(); |
569 |
I need the bar works like in the MS Project, where task from 1/1/2001 to 1/1/2001 must display 1 day
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Chart->ShowEmptyBars = 1; Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,1).operator double()),TNoParam(),TNoParam()); |
568 |
I have a bar that has the start and end date identical. Nothing is displayed. What can I do
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Chart->ShowEmptyBars = 1; Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,2).operator double()),TNoParam(),TNoParam()); |
567 |
How can I display seconds and bars for 15 to 15
Gantt1->BeginUpdate(); Gantt1->Chart->set_FirstVisibleDate(TVariant("1/1/2002 00:00")); Gantt1->Chart->LevelCount = 2; Gantt1->Chart->get_Level(0)->set_Label(TVariant(1048576)); Exganttlib_tlb::ILevelPtr var_Level = Gantt1->Chart->get_Level(1); var_Level->set_Label(TVariant("<%ss%>")); var_Level->Count = 15; Gantt1->Chart->set_PaneWidth(false,48); Gantt1->Chart->Bars->Copy(L"Task",L"Task2")->Color = RGB(255,0,0); Gantt1->Columns->Add(L"Task"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant("1/1/2002 00:00:15"),TVariant("1/1/2002 00:00:45"),TVariant("A"),TNoParam()); var_Items->AddBar(h,TVariant("Task2"),TVariant("1/1/2002 00:01:15"),TVariant("1/1/2002 00:01:45"),TVariant("B"),TNoParam()); var_Items->AddLink(TVariant("AB"),h,TVariant("A"),h,TVariant("B")); Gantt1->EndUpdate(); |
566 |
How can I copy a predefined bar
Gantt1->Chart->Bars->Copy(L"Task",L"T2")->Color = RGB(255,0,0); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("T2"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
565 |
How can I define my own custom bar, using my icons or pictures
Gantt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); Exganttlib_tlb::IBarsPtr var_Bars = Gantt1->Chart->Bars; var_Bars->AddShapeCorner(TVariant(12345),TVariant(1)); var_Bars->AddShapeCorner(TVariant(22345),TVariant(2)); Exganttlib_tlb::IBarPtr var_Bar = var_Bars->Add(L"T2"); var_Bar->StartShape = Exganttlib_tlb::ShapeCornerEnum(0x5740 | Exganttlib_tlb::ShapeCornerEnum::exShapeIconCircleUp1); var_Bar->EndShape = Exganttlib_tlb::ShapeCornerEnum(0x3020 | Exganttlib_tlb::ShapeCornerEnum::exShapeIconVBar | Exganttlib_tlb::ShapeCornerEnum::exShapeIconRight); var_Bar->EndColor = RGB(255,0,0); var_Bar->Pattern = Exganttlib_tlb::PatternEnum::exPatternDot; var_Bar->Color = RGB(255,0,255); var_Bar->Shape = Exganttlib_tlb::ShapeBarEnum::exShapeThinCenter; Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("T2"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
564 |
How can I access a predefined bar
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); Gantt1->Chart->Bars->get_Item(TVariant("Task"))->Color = RGB(255,0,0); |
563 |
How can I access a predefined bar
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); Gantt1->Chart->Bars->get_Item(TVariant("Task"))->Color = RGB(255,0,0); |
562 |
How can I remove all predefined bars
|
561 |
How can I remove a predefined bar
|
560 |
How do I get the number of predefined bars
|
559 |
How can I change the height of the task bar
Exganttlib_tlb::IBarPtr var_Bar = Gantt1->Chart->Bars->Copy(L"Task",L"T2"); var_Bar->Height = 24; var_Bar->EndShape = Exganttlib_tlb::ShapeCornerEnum::exShapeIconDown1; var_Bar->EndColor = RGB(255,0,0); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Item 1")); var_Items->set_ItemHeight(h,28); var_Items->AddBar(h,TVariant("T2"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Item 2")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
558 |
How can I change the ending shape for all task bars
Exganttlib_tlb::IBarPtr var_Bar = Gantt1->Chart->Bars->get_Item(TVariant("Task")); var_Bar->EndShape = Exganttlib_tlb::ShapeCornerEnum::exShapeIconUp1; var_Bar->EndColor = RGB(255,0,0); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
557 |
How can I change the height of the task bar
Gantt1->DefaultItemHeight = 28; Gantt1->Chart->Bars->get_Item(TVariant("Task"))->Height = 24; Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Item 2")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
556 |
How can I change the starting shape for all task bars
Exganttlib_tlb::IBarPtr var_Bar = Gantt1->Chart->Bars->get_Item(TVariant("Task")); var_Bar->StartShape = Exganttlib_tlb::ShapeCornerEnum::exShapeIconUp1; var_Bar->StartColor = RGB(255,0,0); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
555 |
How can I change the height of the task bar
Gantt1->Chart->Bars->Copy(L"Task",L"T2")->Height = 17; Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("T2"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Item 2")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
554 |
How can I change the height for all task bars
Gantt1->Chart->Bars->get_Item(TVariant("Task"))->Height = 17; Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
553 |
How can I change the color of the task bar
Gantt1->Chart->Bars->Copy(L"Task",L"T2")->Color = RGB(255,0,0); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("T2"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Item 2")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
552 |
How can I change the color for all task bars
Gantt1->Chart->Bars->get_Item(TVariant("Task"))->Color = RGB(255,0,0); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
551 |
How can I change the shape for all task bars
Gantt1->Chart->Bars->get_Item(TVariant("Task"))->Shape = Exganttlib_tlb::ShapeBarEnum::exShapeSolidDown; Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
550 |
How can I change the shape of the task bar
Gantt1->Chart->Bars->Copy(L"Task",L"T2")->Shape = Exganttlib_tlb::ShapeBarEnum::exShapeThinCenter; Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("T2"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
549 |
How can I change the pattern or style for all task bars
Gantt1->Chart->Bars->get_Item(TVariant("Task"))->Pattern = Exganttlib_tlb::PatternEnum::exPatternFDiagonal; Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
548 |
How can I change the pattern of the task bar
Gantt1->Chart->Bars->Copy(L"Task",L"T2")->Pattern = Exganttlib_tlb::PatternEnum::exPatternFDiagonal; Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Columns->Add(L"Column"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("T2"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Item 2")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
547 |
How can I add a percent bar in the chart area, so the task bar is splited for non working days or hours
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->Bars->Add(L"Task%Progress:Split")->Shortcut = L"TS"; Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("TS"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,16).operator double()),TVariant("P1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("P1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.14)); var_Items->set_ItemBar(h,TVariant("P1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); |
546 |
How can I add a bar in the chart area, so the task bar is splited for non working days or hours
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->Bars->Add(L"Task:Split")->Shortcut = L"TS"; Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("TS"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,16).operator double()),TNoParam(),TNoParam()); |
545 |
How can I add a split bar in the chart area
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Split"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TNoParam(),TNoParam()); |
544 |
How can I add a progress bar in the chart area
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Progress"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TNoParam(),TNoParam()); |
543 |
How can I add a milestone bar in the chart area
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Milestone"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,2).operator double()),TNoParam(),TNoParam()); |
542 |
How can I add a summary bar in the chart area
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Summary"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TNoParam(),TNoParam()); |
541 |
How can I add a project summary bar in the chart area
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Project Summary"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TNoParam(),TNoParam()); |
540 |
How can I add a deadline bar in the chart area
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Deadline"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,2).operator double()),TNoParam(),TNoParam()); |
539 |
How can I add a task bar in the chart area
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
538 |
How can I assign a picture or an icon to a bar in the chart
Gantt1->HTMLPicture[L"p1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif"); Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->set_ItemHeight(h,48); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant("<img>p1</img>")); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarHAlignCaption,TVariant(2)); |
537 |
How can I assign a picture or an icon to a bar in the chart
Gantt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant("<img>1</img>")); |
536 |
How can I display or add an anchor or a hyperlink in the link
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,3).operator double()),TVariant("K1"),TNoParam()); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkText,TVariant("just <a1>link</a>")); |
535 |
How can I display a picture or an icon on the link
Gantt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,3).operator double()),TVariant("K1"),TNoParam()); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkText,TVariant("just <img>1</img> link")); |
534 |
How can I display a picture or an icon on the link
Gantt1->HTMLPicture[L"pic1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif"); Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,3).operator double()),TVariant("K1"),TNoParam()); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkText,TVariant("<img>pic1</img><br><br>just a link")); |
533 |
How can I display some HTML text or caption on link
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,3).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkText,TVariant("L<b>1</b>")); |
532 |
How can I assign a tooltip to a link
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,3).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkText,TVariant("L<b>1</b>")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkToolTip,TVariant("This is a bit of text that's shown when the cursor hovers the link")); |
531 |
Can I change the width or the size of the link
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkStyle,TVariant(0)); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkWidth,TVariant(2)); |
530 |
Can I change the style of the link
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkStyle,TVariant(4)); |
529 |
Can I change the color of the link
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkColor,TVariant(255)); |
528 |
Can I change the part of the bar where the link ends
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkStartPos,TVariant(1)); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkEndPos,TVariant(1)); |
527 |
Can I change the part of the bar where the link starts
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkStartPos,TVariant(0)); |
526 |
How can I associate an extra data to a link
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkUserData,TVariant("your data")); |
525 |
How can I show or hide a specified link
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkEndBar,TVariant(false)); |
524 |
How can I get the key of the bar where the link end
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->AddItem(TVariant(var_Items->get_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkEndBar))); |
523 |
How can I get the key of the bar where the link starts
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->AddItem(TVariant(var_Items->get_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkStartBar))); |
522 |
How can I get the handle of the item where the link ends
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->AddItem(TVariant(var_Items->get_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkEndItem))); |
521 |
How can I get the handle of the item where the link starts
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->AddItem(TVariant(var_Items->get_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkStartItem))); |
520 |
How can I enumerate the links in the chart
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->AddLink(TVariant("L2"),h2,TVariant("K2"),h1,TVariant("K1")); var_Items->AddItem(TVariant(var_Items->get_FirstLink())); var_Items->AddItem(TVariant(var_Items->get_NextLink(TVariant(var_Items->get_FirstLink())))); |
519 |
How can I access the properties and method of the link between two bars
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,3).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exganttlib_tlb::LinkPropertyEnum::exLinkText,TVariant("L<b>1</b>")); |
518 |
How can I remove a link between two bars
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->ClearLinks(); |
517 |
How can I remove a link between two bars
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->RemoveLink(TVariant("L1")); |
516 |
How do I add a link between two bars
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); |
515 |
How do I find the number or count of bars in the item
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,2).operator double()),TVariant("K1"),TNoParam()); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,4).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K2"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K2"),Exganttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant(var_Items->get_ItemBar(h,TNoParam(),Exganttlib_tlb::ItemBarPropertyEnum::exBarsCount))); |
514 |
How can I assign any extra data to a bar in the chart
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPattern,TVariant("your data")); |
513 |
Is there any way to change the background color for percent value being displayed on the progress bar
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.35)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercentCaptionFormat,TVariant("<bgcolor=FF0000> %p%</bgcolor>")); |
512 |
Is there any way to change the color for percent value being displayed on the progress bar
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.35)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercentCaptionFormat,TVariant("<fgcolor=FF0000>%p%</fgcolor>")); |
511 |
Is there any way to change the font for percent value being displayed on the progress bar
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.35)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercentCaptionFormat,TVariant("<b><font Tahoma;12>%%p</font></b>")); |
510 |
Is there any way to align the percent value being displayed on the progress bar
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.75)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercentCaptionFormat,TVariant("%p/100")); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarOffset,TVariant(0)); |
509 |
Is there any way to change the format of the percent being displayed on the progress bar
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.4)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercentCaptionFormat,TVariant("<b>%p/100</b>")); |
508 |
How can I show or hide the percent value in the progress bar
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.4)); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); |
507 |
How can I change the percent value in a progress bar
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.4)); |
506 |
How can I add a percent bar
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Chart->Bars->Add(L"Task%Progress"); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task%Progress"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.4)); |
505 |
Can I add a bar in the chart, using your EBN files
Gantt1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant(""),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,5).operator double()),TVariant("K1"),TVariant(" EBN ")); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarBackColor,TVariant(16777216)); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,6).operator double()),TVariant(TDateTime(2001,1,8).operator double()),TVariant("K2"),TNoParam()); |
504 |
How can I change the background color of the bar in the chart
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Gantt1->Chart->Bars->Copy(L"Task",L"TaskR")->Color = RGB(255,0,0); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("TaskR"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); |
503 |
How can I change the background color of the bar in the chart
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarBackColor,TVariant(8421504)); |
502 |
How can I change the background color of the HTML text or caption of the bar in the chart
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant("<bgcolor=FF0000> to do </bgcolor>")); |
501 |
How can I change the foreground color of the HTML text or caption of the bar in the chart
Gantt1->Columns->Add(L"Task"); Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TVariant("t<fgcolor=0000FF>o</fgcolor> do")); var_Items->set_ItemBar(h,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarForeColor,TVariant(16777215)); |